/* 响应式布局 */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
  }

  #character-panel,
  #settings-panel {
    width: 100%;
    height: auto;
    border: none;
  }

  #character-panel {
    order: 2;
    border-top: 1px solid var(--border-color);
  }

  #settings-panel {
    order: 3;
    border-top: 1px solid var(--border-color);
  }

  #chat-area {
    order: 1;
    height: 60vh;
  }

  .modal-content {
    width: 90%;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .header-container input {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .header-container .control-buttons-container {
    width: 100%;
    justify-content: space-between;
  }

  .header-container span {
    display: none;
  }
}

@media (max-width: 480px) {
  .message-bubble {
    max-width: 90%;
  }

  .character-card {
    padding: var(--spacing-sm);
  }

  .character-avatar {
    width: 30px;
    height: 30px;
  }

  .character-name {
    font-size: 0.9em;
  }

  .character-status {
    font-size: 0.7em;
  }

  .form-field input[type="range"] {
    width: 60%;
  }
}
